<script setup>
import NoCode from './components/NoCode.vue'
</script>

<script>
export default {
  data() {
    return { 
      formFields: [
        {
          id: 5,
          type: 'text',
          label: '位置（会议室房间号-座位号）',
          placeholder: '会议室房间号-座位号',
          memo: '会议室房间号-座位号',
          require: true,
          textDataType: 'text'
        },
        {
          id: 2,
          type: 'radio',
          label: '性别',
          arrayValueSet: ['男士', '女士'],
          require: false,
          selectedValue: ''
        },
        {
          id: 3,
          type: 'checkout',
          label: '物品',
          arrayValueSet: ['笔记本电脑', '记事本', '签字笔'],
          require: false,
          selectedValues: []
        },
        {
          id: 4,
          type: 'selectList',
          label: '兴趣爱好',
          arrayValueSet: ['徒步', '编程', '阅读'],
          require: true,
          selectedValue: ''
        }
      ]
    }
  }
}
</script>

<template>
  <main>
    <header><h1>会议室小助手</h1></header>
    <NoCode :formFields="formFields"/>
  </main>
</template>

<style scoped>
</style>
